package com.example.leetcode.dp;

import com.example.leetcode.dp.common.DPUtils;

class Solution198 {
    public int rob(int[] nums) {
        return DPUtils.rob(nums);
    }
}

public class leetcode198 {
    public static void main(String[] args) {
        Solution198 solution198 = new Solution198();
        int[] nums = {1, 2, 3, 1};
        int[] nums1 = {2, 7, 9, 3, 1};
        System.out.println(solution198.rob(nums));
        System.out.println(solution198.rob(nums1));
    }
}
